home *** CD-ROM | disk | FTP | other *** search
- Path: rudi.HL.Siemens.DE!newsadm
- From: Fister Manfred <fister@vihp03.vi.hl.siemens.de>
- Newsgroups: comp.lang.c++
- Subject: CAsyncSocket and VisualBasic
- Date: 25 Mar 1996 10:00:19 GMT
- Organization: Siemens AG, Munich
- Message-ID: <4j5qrj$8fq@rudi>
- NNTP-Posting-Host: vifist.vi.hl.siemens.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
-
- Hi,
- I've some problem with the CAsyncSocket class in Visual C++ 4.0 running
- under Windows NT. I've programmed a DLL, which uses these socket calls.
- Project setting for this DLL is "a regular DLL with MFC linked
- dynamically".
- When I start a MFC Application, which uses this DLL , everything works
- fine.
- If the application is written with Visual Basic 4.0, the socket
- creation function (pSocket->Create()) in this DLL fails.
-
- I always get the message: Assertion failed in afxwin1.inl at line 19.
- In this line, the call AfxGetInstanceHandle() fails. It will be called
- from the module \MSDEV\MFC\src\SOCKCORE.CPP in line 611:
-
- if (!pWnd->CreateEx(0, AfxRegisterWndClass(0),
- _T("Socket Notification Sink"),
- WS_OVERLAPPED, 0, 0, 0, 0, NULL, NULL))
- {
- TRACE0("Warning: unable to create socket
- notify window!\n");
- AfxThrowResourceException();
- }
-
- Does anyone know what's the cause and what to do? Thank's a lot ahead!
-
- Manfred
-
-
-
-